package com.hdoit.ares.logical.tp.zzb.dao.impl;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.tp.zzb.dao.IInsbregionDao;
import com.hdoit.ares.logical.tp.zzb.model.Insbregion;
import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.utils.FinderExpressionFactory;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年03月01日 10:05:41
 * @comment
 */
@Component
public class InsbregionDaoImpl extends SuperDao<Insbregion> implements IInsbregionDao{

	@Override
	public Insbregion queryModelByComcode(String comcode) {
		IFinderExpression finderExpression=FinderExpressionFactory.createExpression();
		finderExpression.select("*")
						.from(Insbregion.class)
						.andEq("comcode",comcode);
	    return queryModel(finderExpression);
	}

}